home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-05-04 | 1.0 KB | 30 lines | [TEXT/GEOL] |
- Item 9251648 4-May-90 05:23PDT
-
- From: M.DANIEL Daniel Scientific, M Daniel,PRT
-
- To: CPLUS.APPLE$ C++ Interest List--Apple Employees
- CPLUS.DEV$ C++ Interest List--Developers
-
- Sub: RE>>> copy vs op= & cons...
-
- Dear Larry,
-
- Thank you for your views, I agree with them. Type conversion is exactly the
- reason why I'm "experimenting" with "operator int();". I'm not exactly sure
- how the conversion algorithm works, nor how it will fail, nor what ambiguities
- will arise.
-
- My motivation is improving code readibility, and completing the integration of
- classes as abstract data types. Toward this goal, I would like to keep the
- idea of refering to the object identifier to test the object. Just like the
- rest of the built in data types.
-
- What do you think about using "operator char();" or "operator unsigned
- char();"?
- Exactly how would you implement the new class you suggest?
-
- Michael J. Daniel
- Daniel Scientific
- AppleLink:M.Daniel
-
-